package com.example.net1;
import java.io.Serializable;
import java.util.ArrayList;


public class Receipt implements Serializable {

	public double amount;
	public ArrayList<Item> items;
	
	public Receipt() {
		amount = 0;
		items = new ArrayList<Item>();
	}
	public void addEntry(String description, double price, int number) {
		items.add(new Item(description, price, number));
		amount += number*price;
	}
	
}
